package com.xin.service;

import com.alibaba.fastjson.JSONObject;
import com.xin.entity.SOrg;
import com.xin.entity.UTeacherInfo;
import com.baomidou.mybatisplus.service.IService;
import org.apache.ibatis.annotations.Param;
import org.springframework.ui.Model;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 教师信息 服务类
 * </p>
 *
 * @author l1
 * @since 2017-10-23
 */
public interface UTeacherInfoService extends IService<UTeacherInfo> {

    public void splitOrgs(List<SOrg> orgs,List<String> ones,Map<String,List<String>> twoeMap);
    /**
     * 分类统计
     */
    public List<JSONObject> statCategory(String subjectCategory);

    /**
     * 按照二级目录(学院) 统计
     *
     */
    public List<JSONObject> statSubject(String subjectCategory,String subjectAttribution);

    /**
     * 按照专业统计
     */
    public List<JSONObject> statprofessional(
            String subjectCategory,
            String subjectAttribution,
            String prefessionalAttribution);


    public void statJobCategoryByStatus(JSONObject statCategorye);

    public List<JSONObject> statHome(String id,String category,Integer level);

    /**
     * 教师详情查询
     * @param id
     * @param model
     */
    void findDetail(String id, Model model);

    public List<String> findDistinctSubject(String subjectCategory);

    public List<String> findDistinctProfessional(String subjectCategory,String subjectAttribution);

    /**
     * 根据组织筛选数据
     * @param utInfo
     * @param orgs
     * @return
     */
    List<JSONObject> statHomeByOrgs(UTeacherInfo utInfo, List<SOrg> orgs,JSONObject jsonObject);
}
